ROOT:=..

#--------------------------------Output------------------------------
# OUTTYPE: 0-exe, 1-dll, 2-static
#--------------------------------------------------------------------
OUTTYPE = 2
OUTFILE = libsdk.a

#-------------------------------Include------------------------------
#
# INCLUDES = $(addprefix -I,$(INCLUDES)) # add -I prefix
#--------------------------------------------------------------------
INCLUDES = . $(ROOT)/include 

#-------------------------------Source-------------------------------
#
#--------------------------------------------------------------------
SOURCE_PATHS = $(ROOT)/source $(ROOT)/source/digest
SOURCE_FILES = $(foreach dir,$(SOURCE_PATHS),$(wildcard $(dir)/*.cpp))
#SOURCE_FILES += $(ROOT)/source/string/strtoken.c
SOURCE_FILES += $(ROOT)/source/port/ip-route.c
SOURCE_FILES += $(ROOT)/source/port/sysdirlist.c
SOURCE_FILES += $(ROOT)/source/port/file-watcher-linux.c

SOURCE_FILES += $(foreach dir,$(SOURCE_PATHS),$(wildcard $(dir)/*.c))

#-----------------------------Library--------------------------------
#
# LIBPATHS = $(addprefix -L,$(LIBPATHS)) # add -L prefix
#--------------------------------------------------------------------
LIBPATHS =
ifdef RELEASE
# relase library path
LIBPATHS +=
else
LIBPATHS +=
endif

LIBS = 

STATIC_LIBS =

#-----------------------------DEFINES--------------------------------
#
# DEFINES := $(addprefix -D,$(DEFINES)) # add -L prefix
#--------------------------------------------------------------------
DEFINES = #__OPENSSL__

include $(ROOT)/gcc.mk
